[#macro head _title="本页标题"]
[#assign base=(globalConfig.contextPath)!'/' /]
[#assign prop=(globalConfig.prop)!'{}' /]
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${_title}</title>
    <script>
        window.BASE = '${base!'/'}';
        window.PROP = '${prop}';
    </script>
    <link rel="stylesheet" href="${base!'/'}framework/pc2/css/reset.css">
    <link rel="stylesheet" href="${base!'/'}framework/pc2/css/buttons.css">
    <link rel="stylesheet" href="${base!'/'}framework/pc2/css/animate.css">
    <style>
        [v-cloak] {
            display: none;
        }
        body{
            font-size: 14px;
        }
        html, body, #jgp-main-app {
            height: 100%;
            overflow: hidden;
        }
    </style>
    <link rel=stylesheet href="${base!'/'}framework/pc2/css/jgp.css">
    <link rel=stylesheet href="${base!'/'}static/css/jgp-style.css">
    [#nested ]
</head>
<body>
<div id="jgp-mask-wrap" class="jgp-container">
    <jgp-mask></jgp-mask>
</div>
[/#macro]
[#macro body]
<div id="jgp-main-app" class="jgp-container" v-cloak>
    [#nested ]
</div>
[/#macro]
[#macro no_render]
    [#nested ]
[/#macro]
[#macro foot]
<script type="text/javascript" src="${base!'/'}framework/pc2/js/jquery.min.js"></script>
<script type="text/javascript" src="${base!'/'}framework/pc2/plugin/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="${base!'/'}framework/pc2/js/chunk-vendors.js"></script>
<script type="text/javascript" src="${base!'/'}static/js/jsencrypt.min.js"></script>
<script type="text/javascript" src="${base!'/'}framework/pc2/js/jgp.js"></script>
<script>
    var RSA;
    JGP.$post('/security/entry-api-ctl/get-pbk',{},function(result){
        if(result.flag){
            RSA = new JSEncrypt();
            RSA.setPublicKey(result.data.publicKey);
        }
    })
</script>
    [#nested ]
</body>
</html>
[/#macro]


[#macro css link]
<link rel="stylesheet" href="${base!'/'}${link!''}">
[/#macro]

[#macro js link]
<script type="text/javascript" src="${base!'/'}${link!''}"></script>
[/#macro]

[#function link src]
    [#if base??]
        [#return base+src]
    [#else ]
        [#return '/'+src]
    [/#if]
[/#function]

[#function crumbs window]
    [#if window??&&(window.crumbs)??]
        [#local crumbs_content=""]
        [#list window.crumbs as info]
            [#local crumbs_content=crumbs_content+"<a href='javascript:void(0);'>首页</a>"]
            [#if info_index!=(infos?size+1)]
                [#local crumbs_content=crumbs_content+"/"]
            [/#if]
        [/#list]
        [#return crumbs_content]
    [/#if]
[/#function]

